package com.ict.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ict.web.domain.AnnualProjectPlan;
import com.ict.web.dto.AnnualProjectPlanListDto;
import com.ict.web.vo.AnnualProjectPlanDetailsVo;
import com.ict.web.vo.AnnualProjectPlanListVo;

import java.util.List;

/**
 * 年度项目计划Mapper接口
 *
 * @author ruoyi
 * @date 2022-02-14
 */
public interface AnnualProjectPlanMapper extends BaseMapper<AnnualProjectPlan>
{
    /**
     * 查询年度项目计划
     *
     * @param planId 年度项目计划主键
     * @return 年度项目计划
     */
    public AnnualProjectPlanDetailsVo selectAnnualProjectPlanByPlanId(Long planId);

    /**
     * 查询年度项目计划列表
     *
     * @param dto 年度项目计划
     * @return 年度项目计划集合
     */
    public List<AnnualProjectPlanListVo> selectAnnualProjectPlanList(AnnualProjectPlanListDto dto);

    public List<AnnualProjectPlanListVo> selectAnnualNameList(AnnualProjectPlanListVo vo);
    /**
     * 批量修改年度计划
     *
     * @param list
     * @return 结果
     */
    int batchUpdate(List<AnnualProjectPlan> list);
}
